package com.qrsx.table;

public class Type {
	
	private Integer type_sign;
	private String type_name;
	private String type_intro;
	public Integer getType_sign() {
		return type_sign;
	}
	public void setType_sign(Integer type_sign) {
		this.type_sign = type_sign;
	}
	public String getType_name() {
		return type_name;
	}
	public void setType_name(String type_name) {
		this.type_name = type_name;
	}
	public String getType_intro() {
		return type_intro;
	}
	public void setType_intro(String type_intro) {
		this.type_intro = type_intro;
	}

	public Type(String type_name, String type_intro) {
		this.type_name = type_name;
		this.type_intro = type_intro;
	}
	
	public Type(Integer type_sign) {
		this();
		this.type_sign = type_sign;
	}
	public Type() {
		
	}
	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((type_sign == null) ? 0 : type_sign.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Type other = (Type) obj;
		if (type_sign == null) {
			if (other.type_sign != null)
				return false;
		} else if (!type_sign.equals(other.type_sign))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Type [type_sign=" + type_sign + ", type_name=" + type_name + ", type_intro=" + type_intro + "]";
	}
	
	
}
